package org.yefei.homeworkday16.carrentsysem;

//轿车类
public class Limousine extends Car {

	public Limousine(String brand, String cNum, double dateRent, boolean state, int seating, String type,
			String model) {
		super(brand, cNum, dateRent, state, seating, type);
		this.model = model;
	}

	public Limousine(String brand, String cNum, double dateRent, boolean state, int seating, String type) {
		super(brand, cNum, dateRent, state, seating, type);
	}

	public Limousine() {
	}

	private String model;// 型号

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Override
	public double calDateRent(int day) {
		if (day > 150) {
			return super.getDateRent() * day * 0.9;
		} else if (day > 30) {
			return super.getDateRent() * day * 0.8;
		} else if (day > 7) {
			return super.getDateRent() * day * 0.7;
		}
		return super.getDateRent() * day;
	}

}
